package com.zpark.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpSession;

/**
 * @PackageName: com.zpark.controller
 * @ClassName: UserController
 * @Description:
 * @author: RZS
 * @date: 2022/9/20  10:55
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @RequestMapping("/login.do")
    public String login(HttpSession session){
        // 往session对象中绑定数据
        session.setAttribute("User", "code:200");

        return "登录成功";
    }
}
